home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Tool Chest / Dev.CD Aug 98 TC.toast / What's New? / Software Development Kits / Mac OS USB DDK / MacOS USB DDK 1.0b4 / NeptuneDDK / Examples / SerialBox / SerialBox.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-26  |  1.4 KB  |  47 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SerialBox.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Version:    xxx put version here xxx
  7.  
  8.     Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  9.  
  10. */
  11.  
  12.  
  13. #include <USB.h>
  14.  
  15. #include "DriverServices.h"
  16. #include "processes.h"
  17. #include "ShimSerialInternal.h"
  18.  
  19. void readCompletion(USBPB *pb);
  20. void writeCompletion(USBPB *pb);
  21.  
  22. void serialBoxEntry(USBDeviceRef device, USBDeviceDescriptor *desc);
  23. static void StartStatusMonitor(USBPipeRef interruptPipe);
  24. static void InitializePB(USBPB *pb, USBDeviceRef ref, USBCompletion handler);
  25. void USBStartReadPolling(void);
  26. Boolean TimeoutPreviousRequest(void);
  27. void USBSetBaudRateDivisor(UInt16 divisor);
  28. void USBSetParChar(UInt8 parChar);
  29. void USBSetStopBits(UInt16 stopBits);
  30. void USBSetDataBits(UInt16 dataBits);
  31. void USBSetParityBits(UInt16 parityBits);
  32. void USBSetControl(UInt16 state);
  33. void USBSetDTRState(Boolean state);
  34. void USBSetRTSState(Boolean state);
  35. void USBSetBreakState(Boolean state);
  36. UInt32    USBGetModemStatus(void);
  37. void serialBoxEntry(USBDeviceRef device, USBDeviceDescriptor *desc);
  38. void ShimInput(UInt8 *buf, UInt32 count);
  39. void USBStartReadPolling();
  40. void USBStopReadPolling();
  41. OSStatus USBSerialWrite(IOParam *pb);
  42.  
  43.  
  44. void B_EnableRTS(ShimSerialGlobals * globals, Boolean enable);
  45. void B_SetBreak(ShimSerialGlobals * globals, Boolean setBreak);
  46. void B_SetLenParStop(ShimSerialGlobals * globals, UInt8 lenParStop );
  47.